home *** CD-ROM | disk | FTP | other *** search
- property ancestor, pXMinLoc, pCursor
- global gTableClipboard, gDBTableVarList
-
- on new me, buttonName, castName, xSprite, xLoc, descendant
- ancestor = new(script("generic button"), buttonName, castName, xSprite, xLoc, me)
- pXMinLoc = xLoc.locH
- MyObj = getaProp(gDBTableVarList, GetObjProp())
- pCursor = GetPointingCursor(MyObj)
- return me
- end
-
- on performFunction me
- tell the stage
- playSFX(5)
- end tell
- MyObj = getaProp(gDBTableVarList, GetObjProp())
- TableCopy(MyObj)
- return me
- end
-
- on enable me
- enable(ancestor)
- set the cursor of sprite the pChannel of me to pCursor
- end
-
- on disable me
- disable(ancestor)
- set the cursor of sprite the pChannel of me to -1
- end
-
- on buttonLoc me, size
- set the locH of sprite the pChannel of me to getAt([pXMinLoc, 517], size)
- return me
- end
-